package com.tbvtc.agriculturalcreditchainserver2025.utils;

import com.tbvtc.agriculturalcreditchainserver2025.comment.iot.Enm.Sensor;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import picocli.CommandLine;
@Component
@RequiredArgsConstructor
public class IotBaseUtils {
    public Sensor getSensorData(Integer sensorId) {
        if (sensorId == 0){
            return Sensor.hycgq;
        }
        if (sensorId == 1){
            return Sensor.wdcgq;
        }
        if (sensorId == 2){
            return Sensor.sdcgq;
        }
        if (sensorId == 3){
            return Sensor.gzvgq;
        }
   return null;
    }
}
